package main;

public class Electronics extends Product {
    //特有属性 品牌
    private String brand;

    public Electronics(String productId, String name, double price, String brand) throws InvalidPriceException {
        super(productId, name, price);
        this.brand = brand;
    }
    public String getDescription() {
        return "电子产品，品牌: " + brand + "，" + super.getName() + "，售价" + super.getPrice() + "元";
    }

    // 特有方法：检查保修状态
    public String checkWarranty() {
        return "品牌" + brand + "的产品，默认保修1年";
    }
}
